/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.domain;

import com.yunqian.model.BaseModel;
import com.yunqian.redot.constant.Tables;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 客户信息表
 *
 * @author zsy
 * 2018-09-29 15:54:28
 */
@Data
@Entity
@Table(name = Tables.CUSTOMERS)
@EqualsAndHashCode(callSuper = false)
public class Customers extends BaseModel<Long>{
    
    /**姓名*/
    @Column(name = "name")
    private String name;
    /**真实姓名*/
    @Column(name = "real_name")
    private String realName;
    /**手机号*/
    @Column(name = "phone")
    private String phone;
    /**微信开放平台openId*/
    @Column(name = "open_id")
    private String openId;
    /**微信开放平台sessionKey*/
    @Column(name = "session_key")
    private String sessionKey;
    /**最后登录时间*/
    @Column(name = "last_login_time")
    private Date lastLoginTime;
    /**用户头像*/
    @Column(name = "avatar_url")
    private String avatarUrl;
    /**性别*/
    @Column(name = "gender")
    private Integer gender;
    /**所在城市*/
    @Column(name = "city")
    private String city;
    /**所在省份*/
    @Column(name = "province")
    private String province;
    /**所在国家*/
    @Column(name = "country")
    private String country;
    /**用户的语言*/
    @Column(name = "language")
    private String language;


    public Customers() {
    }

}
